﻿<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
  <xsl:output method="xml" indent="yes"/>

  <xsl:template match="Result">
    <html>
      <style media="all" type="text/css">
        fieldset {
        padding:10px;
        margin:10px;
        color:#333;
        border:#06c dashed 1px;
        margin:15px;
        }

        legend {
        color:#06c;
        font-weight:800;
        background:#fff;
        font-size: 15px;
        font-weight:bolder;
        }
        body{
        /*background: url("./images/main_bottom_bg.jpg") no-repeat scroll right bottom #E7EEF8;*/
        color: #333333;
        font-family: "宋体",Arial Helvetica,sans-serif;
        font-size: 12px;
        }
        table.grid_layout {
        border-collapse: collapse;
        }
        table {
        border-collapse: separate;
        border-spacing: 0;
        }
        .separator {
        background: url("./images/separator.gif") repeat-x scroll 0 0 transparent;
        height: 2px;
        line-height: 2px;
        overflow: hidden;
        }
        table.grid_layout tr td {
        font-weight: normal;
        height: 15px;
        padding: 5px 0;
        vertical-align: middle;
        }



        .gridview tr
        {
        line-height :200%;
        }

        .gridview{
        border:1px solid #5F6F7E;
        border-collapse:collapse;
        font-family:Arial;
        }
        .gridview caption{
        text-align:left;
        padding-bottom:6px;
        }
        .gridview th{
        border:1px solid #5F6F7E;
        background-color:#E2E2E2;
        color:#0000FFpx;
        text-align:center;
        font-weight:bolder;
        padding:2px 8px 2px 6px;
        margin:0px;
        }
        .gridview td{
        margin:0px;
        padding:0px;
        border:1px solid #ABABAB; /* 单元格边框 */
        }

        .gridview td div
        {
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
        }



        /*表格样式。*/
        .table {
        padding: 0px;
        margin: 0px;
        font-family:Arial, Tahoma, Verdana, Sans-Serif,宋体;
        border-left:1px solid #ADD8E6;
        border-collapse:collapse;
        }

        /*表头样式。*/
        .table th {
        font-size:12px;
        font-weight:600;
        color: #303030;
        border-right: 1px solid #ADD8E6;
        border-bottom: 1px solid #ADD8E6;
        border-top: 1px solid #ADD8E6;
        letter-spacing: 2px;
        text-align: center;
        padding: 10px 0px 10px 0px;
        background: url(../images/tablehdbg.png);
        white-space:nowrap;
        text-align:center;
        overflow: hidden;
        }

        /*单元格样式。*/
        .table td {
        border-right: 1px solid #ADD8E6;
        border-bottom: 1px solid #ADD8E6;
        background: #fff;
        font-size:12px;
        padding: 3px 3px 3px 6px;
        color: #303030;
        word-break:break-all;
        word-wrap:break-word;
        white-space:normal;
        }
        /*
        by liuyu
        */
        .table td pre{
        font-size:12px;
        padding: 3px 3px 3px 6px;
        color: #303030;
        word-break:break-all;
        word-wrap:break-word;
        white-space:normal;
        }
        /*蓝色单元格样式，主要用于隔行变色。*/
        .table td.color{
        background:#edf7f9;
        }

        /*表格中超级链接样式。*/
        .table td a:link{
        font-weight:400 ;
        color:#2259D7 ;
        text-decoration:none  ;
        word-break:break-all;
        word-wrap:break-word;
        white-space:normal;
        }

        .table td a:visited {
        font-weight:400 ;
        color:#2259D7 ;
        text-decoration:none  ;
        word-break:break-all;
        word-wrap:break-word;
        white-space:normal;
        }

        .table td a:hover {
        font-weight:400 ;
        text-decoration:underline ;
        color: #303030;
        word-break:break-all;
        word-wrap:break-word;
        white-space:normal;
        }

        .table td a:active {
        font-weight:400 ;
        text-decoration:none  ;
        color:#2259D7 ;
        word-break:break-all;
        word-wrap:break-word;
        white-space:normal;
        }
      </style>

      <body>

        <div  style='layout-grid:15.6pt'>

          <p  align='left' style='text-align:left'>
            <b>
              <span lang='EN-US'
style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:red'>
                <xsl:value-of select="DisplayName" />
              </span>
            </b>
            <span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span>
            <span
style='font-size:10.0pt;font-family:宋体'>，   你好！</span>
          </p>

          <p  align='left' style='text-align:left'>
            您的开票记录[票号]中，以下记录发生了状态变更：
          </p>



            <table class="table" width="90%" style="margin:15px;"  cellspacing="3" cellpadding="1"  bordercolor="black" border="0">
              <caption>票号列表</caption>
              <tr>
                <th >序号</th>
                <th >票号</th>
                <th >出票日期</th>
                <th >处理时间</th>
                <th >状态</th>
                <th >航班及航段</th>
              </tr>
              <xsl:for-each select="Tickets/Ticket">
                <tr>
                  <td width="10%" style="text-align:center;">
                    <xsl:value-of select="Id"/>
                  </td>
                  <td width="15%" style="text-align:center;">
                    <xsl:value-of select="TicketNo"/>
                  </td>
                  <td width="8%" style="text-align:center;">
                    <xsl:value-of select="TicketDate"/>
                  </td>
                  <td width="8%" style="text-align:center;">
                    <xsl:value-of select="ProcessDate"/>
                  </td>
                  <td width="35%" style="text-align:center;">
                    <xsl:value-of select="DetrStatus"/>
                  </td>
                  <td style="text-align:left;">
                    <xsl:value-of select="Segments"/>
                  </td>
                </tr>
              </xsl:for-each>
            </table>


          <p class='MsoNormal' align='left' style='text-align:left'>
            <span lang='EN-US'
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>
              <br />
              -------------------------------------------------------- <br />
              REMINDER: <br />
              THIS IS AN UNATTENDED ALIAS. DO NOT REPLY OR FORWARD TO THIS ALIAS. <br />
            </span>
            <span style='font-size:10.0pt;font-family:宋体'>这是系统自动发出的邮件，请您不要回复此邮件。</span>
            <span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span>
          </p>

        </div>


        <DIV>
          <SPAN
     style="FONT-FAMILY: 宋体; COLOR: #002060; FONT-SIZE: 12pt">
            <STRONG>
              <font color="#0000ff" size="4" face="微软雅黑">
                胡李俊<br />
              </font>
            </STRONG>
          </SPAN>
          <SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #888888; FONT-SIZE: 10pt">
            <SPAN
style="FONT-FAMILY: 宋体; FONT-SIZE: 9pt">
              <FONT style="FONT-SIZE: 10.5pt"
size="1">
                <SPAN style="FONT-SIZE: 10.5pt" lang="EN-US">
                  <FONT face="微软雅黑">
                    <FONT color="#000000">=================================================================</FONT>
                    <br />
                  </FONT>
                </SPAN>
              </FONT>
            </SPAN>
          </SPAN>

          <FONT
face="微软雅黑">
            <SPAN style="FONT-FAMILY: 宋体; COLOR: #555555; FONT-SIZE: 10pt"
  lang="ZH-CN">手机 </SPAN>
            <SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #555555; FONT-SIZE: 10pt">
              :
              +86-13524008692
            </SPAN>
          </FONT>
        </DIV>
        <DIV>
          <SPAN
     style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #555555; FONT-SIZE: 10pt">
            <FONT
face="微软雅黑">Q Q  : 29742914</FONT>
          </SPAN>
        </DIV>



        <font
face="微软雅黑">
            <SPAN style="FONT-FAMILY: 宋体; COLOR: #555555; FONT-SIZE: 10pt"
  lang="ZH-CN">邮箱 </SPAN>
            <SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #555555; FONT-SIZE: 10pt">
              : <A
href="mailto:LIJUN.HU@OUTLOOK.COM">
                <FONT
color="#0000ff">LIJUN.HU@OUTLOOK.COM</FONT>
              </A> 
            </SPAN>
          </font>
          <SPAN
style="FONT-FAMILY: 宋体; COLOR: #002060; FONT-SIZE: 12pt">
            <br />
          </SPAN>
          <SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #888888; FONT-SIZE: 10pt">
            <SPAN
style="FONT-FAMILY: 宋体; FONT-SIZE: 9pt">
              <font style="FONT-SIZE: 10.5pt"
size="1">
                <SPAN style="FONT-SIZE: 10.5pt" lang="EN-US">
                  <font color="#000000" face="微软雅黑">=================================================================</font>
                </SPAN>
              </font>
            </SPAN>
          </SPAN>
        
        
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>